package org.jasig.cas.util;

import org.jasig.cas.authentication.handler.PasswordEncoder;
import org.springframework.stereotype.Component;


@Component("passwordEncoder")
public class Md5PasswordEncoder implements PasswordEncoder {
	private static MD5 md5 = new MD5();
	public String encode(String password) {
		return md5.getMD5ofStr(password);
	}

}
